package com.mt.fpb.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

@Table(name = "t_warning")
public class TWarning {
    /**
     * 告警信息id
     */
    @Id
    @Column(name = "warning_id")
    private Integer warningId;

    /**
     * 告警类型
     */
    @Column(name = "warning_type")
    private Integer warningType;

    /**
     * 矿区id
     */
    @Column(name = "mine_id")
    private Integer mineId;

    @Column(name = "mine_code")
    private String mineCode; // 矿区编码

    /**
     * 矿区简称
     */
    @Column(name = "mine_short_name")
    private String mineShortName;

    /**
     * 告警时间
     */
    @Column(name = "warning_time")
    private Date warningTime;

    /**
     * 告警来源id
     */
    @Column(name = "warning_source_id")
    private Integer warningSourceId;


    /**
     * 告警来源code
     */
    @Column(name = "warning_source_code")
    private String warningSourceCode;
    /**
     * 告警状态
     */
    @Column(name = "warning_status")
    private Integer warningStatus;

    /**
     * 添加时间
     */
    @Column(name = "insert_time")
    private Date insertTime;

    /**
     * 修改时间
     */
    @Column(name = "update_time")
    private Date updateTime;
    /**
     * 处理时间
     */
    @Column(name = "deal_with_time")
    private Date dealWithTime;
    /**
     * 车牌号
     */
    @Transient
    private String plateNo;
    /**
     * 图片url
     */
    @Transient
    private String imageUrl;
    /**
     * 车货总量
     */
    @Transient
    private String vehicleWeight;
    /**
     * 图片数组
     */
    @Transient
    private List<String> imageArray;

    public List<String> getImageArray() {
        return imageArray;
    }

    public void setImageArray(List<String> imageArray) {
        this.imageArray = imageArray;
    }

    public String getVehicleWeight() {
        return vehicleWeight;
    }

    public void setVehicleWeight(String vehicleWeight) {
        this.vehicleWeight = vehicleWeight;
    }

    public String getPlateNo() {
        return plateNo;
    }

    public void setPlateNo(String plateNo) {
        this.plateNo = plateNo;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getWarningSourceCode() {
        return warningSourceCode;
    }

    public void setWarningSourceCode(String warningSourceCode) {
        this.warningSourceCode = warningSourceCode;
    }

    public String getMineCode() {
        return mineCode;
    }

    public void setMineCode(String mineCode) {
        this.mineCode = mineCode;
    }

    public Date getDealWithTime() {
        return dealWithTime;
    }

    public void setDealWithTime(Date dealWithTime) {
        this.dealWithTime = dealWithTime;
    }

    /**
     * 获取告警信息id
     *
     * @return warning_id - 告警信息id
     */
    public Integer getWarningId() {
        return warningId;
    }

    /**
     * 设置告警信息id
     *
     * @param warningId 告警信息id
     */
    public void setWarningId(Integer warningId) {
        this.warningId = warningId;
    }

    /**
     * 获取告警类型
     *
     * @return warning_type - 告警类型
     */
    public Integer getWarningType() {
        return warningType;
    }

    /**
     * 设置告警类型
     *
     * @param warningType 告警类型
     */
    public void setWarningType(Integer warningType) {
        this.warningType = warningType;
    }

    /**
     * 获取矿区id
     *
     * @return mine_id - 矿区id
     */
    public Integer getMineId() {
        return mineId;
    }

    /**
     * 设置矿区id
     *
     * @param mineId 矿区id
     */
    public void setMineId(Integer mineId) {
        this.mineId = mineId;
    }

    /**
     * 获取矿区简称
     *
     * @return mine_short_name - 矿区简称
     */
    public String getMineShortName() {
        return mineShortName;
    }

    /**
     * 设置矿区简称
     *
     * @param mineShortName 矿区简称
     */
    public void setMineShortName(String mineShortName) {
        this.mineShortName = mineShortName;
    }

    /**
     * 获取告警时间
     *
     * @return warning_time - 告警时间
     */
    public Date getWarningTime() {
        return warningTime;
    }

    /**
     * 设置告警时间
     *
     * @param warningTime 告警时间
     */
    public void setWarningTime(Date warningTime) {
        this.warningTime = warningTime;
    }

    /**
     * 获取告警来源id
     *
     * @return warning_source_id - 告警来源id
     */
    public Integer getWarningSourceId() {
        return warningSourceId;
    }

    /**
     * 设置告警来源id
     *
     * @param warningSourceId 告警来源id
     */
    public void setWarningSourceId(Integer warningSourceId) {
        this.warningSourceId = warningSourceId;
    }

    /**
     * 获取告警状态
     *
     * @return warning_status - 告警状态
     */
    public Integer getWarningStatus() {
        return warningStatus;
    }

    /**
     * 设置告警状态
     *
     * @param warningStatus 告警状态
     */
    public void setWarningStatus(Integer warningStatus) {
        this.warningStatus = warningStatus;
    }

    /**
     * 获取添加时间
     *
     * @return insert_time - 添加时间
     */
    public Date getInsertTime() {
        return insertTime;
    }

    /**
     * 设置添加时间
     *
     * @param insertTime 添加时间
     */
    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    /**
     * 获取修改时间
     *
     * @return update_time - 修改时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置修改时间
     *
     * @param updateTime 修改时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}